/**
 * This file is a part of qloudgen-sec. 
 * You can redistribute qloudgen-sec and/or modify it under the terms of the Lesser GNU General Public License version 3. 
 * qloudgen-sec is distributed WITHOUT ANY WARRANTY. 
 *
 * See the Lesser GNU General Public License for more details at http://www.gnu.org/licenses/. 
 **/
package org.qloudgen.sec.osgi.shiro.authz;

/**
 * <p>Title: Authorization Service for OSGi</p>
 * <p>Description: Define authorization service for osgi container.</p>
 * <p>Copyright: qloudgen/sec 2014</p>
 * @author <a href="mailto:hyq.dd.sun@gmail.com">glue.3M</a>
 */
public interface AuthorizationService {
	/**
	 * Authorization.
	 *
	 * @param ticket
	 * @param name
	 * @param facts
	 */
	public boolean isPermitted(String ticket , String name , Object[] facts);
	
	/**
	 *
	 */
	public final static String PID = "authorization";
	/**
	 *
	 */
	public final static String DESCRIPTION = "Authorization service based apache shiro and jboss drools.";
	/**
	 *
	 */
	public final static String VENDOR = "qloudgen";
}